﻿
 //Copyright@<2009> <farida>
using System;
using System.Text;

namespace ProjectMain
{
    class SubMenuProdClass
    {
        public static int SubMenuProd()
			
        {
            int  myChoice;
            do
            {
                // Print A Menu
                Console.WriteLine("EnterPrise Operations Management System\n");
                Console.WriteLine("Module to Add , Delete or Modify  Product\n");

                Console.WriteLine("1. Add  Product");
                Console.WriteLine("2. Delete a Product");
                Console.WriteLine("3. Modify a Product");
                Console.WriteLine("4. Show Data ");
                Console.WriteLine("5. Query the Table ");
                Console.WriteLine("6. Go Back to Prev Menu");
                Console.WriteLine("Choice (1,2,3,4,5 or 6): ");
                // Retrieve the user's choice
                myChoice = Convert.ToInt16(Console.ReadLine());

                if ((myChoice == 1) || (myChoice == 2) || (myChoice == 3) || (myChoice == 4) || (myChoice == 5))
                {
                    return myChoice;
                }
				
				if ((myChoice ==6))
				    SubMenu.SubMenuOptions("username");
				
                
            } while (myChoice != 7); // Keep going until the user wants to quit
            Console.WriteLine("InValid Choice , Choose one of Add/Delete/Modify/Quit");
            return 0;
            

        }
    }
}



    

